<!DOCTYPE html>
<html lang="en">
<head>
  <!-- Basic Page Needs
  ================================================== -->
  <meta charset="utf-8">
  <!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>职到 - 职位，手到擒来！</title>
  <meta name="description" content="KIDS is a clean, modern, and fully responsive Html Template. Take your Startup business website to the next level. It is designed for kindergarten, childcare, homeschooling, school, learning, playground businesses or any type of person or business who wants to showcase their work, services and professional way.">
  <meta name="keywords" content="business, care, childcare, children, clean, corporate, happykids, homeschool, kids, kindergarten, playground, responsive, school, learning">
  <meta name="author" content="rometheme.net">

  <!-- ==============================================
  Favicons
  =============================================== -->
  <link rel="shortcut icon" href="images/favicon.ico">
  <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
  <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">

  <!-- ==============================================
  CSS VENDOR
  =============================================== -->
  <link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/twitter-bootstrap/4.2.1/css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/owl.carousel.min.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/owl.theme.default.min.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/magnific-popup.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/animate.min.css">

  <!-- ==============================================
  Custom Stylesheet
  =============================================== -->
  <link rel="stylesheet" type="text/css" href="css/style(qt).css" />

  <script src="js/vendor/modernizr.min.js"></script>
  <script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
  <link rel="stylesheet" type="text/css" href="/css/style2.css">
  <script type="text/javascript" src="/js/script(biaoge).js"></script>
  <script src="/js/vue.js"></script>
  <script src="/js/axios.min.js"></script>

</head>

<body>
<div id="app">
  <!-- LOAD PAGE -->
  <div class="animationload">
    <div class="loader"></div>
  </div>

  <!-- BACK TO TOP SECTION -->
  <a href="#0" class="cd-top cd-is-visible cd-fade-out">Top</a>

  <!-- TOPBAR -->
  <div class="topbar">
    <div class="container">
      <div class="row align-items-center">
        <div class="col-sm-8 col-md-6">
          <div class="info">
            <div class="info-item">
              <i class="fa fa-phone"></i> +62 7144 3300
            </div>
            <div class="info-item">
              <i class="fa fa-envelope-o"></i> <a href="mailto:support@zhidao.com" title="">support@zhidao.com</a>
            </div>
            <div class="info-item">
              欢迎用户：<span id="demo"></span> 登陆
            </div>
          </div>
        </div>
        <div class="col-sm-4 col-md-6">

          <div class="sosmed-icon pull-right d-inline-flex">
            <a class="navbar-brand" href="my.html">
              <img src="images/wode.png" alt="">
            </a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="navbar-brand" href="help1.html">
              <img src="images/help.png" alt="">
            </a>
          </div>

        </div>
      </div>
    </div>
  </div>

  <!-- 导航栏 -->
  <div class="navbar-main" style="height:100px;">
    <div class="container">
      <nav id="navbar-example" class="navbar navbar-expand-lg">
        <a class="navbar-brand">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <img src="images/logo.png" alt="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <img src="images/slogan.png" alt="">
        </a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNavDropdown">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item">
              <a class="nav-link" href="index1.html">首页</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="Aworkcompany.html">工作</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="work_post.html">投递</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="forum.html">花果山论坛</a>
            </li>

          </ul>
        </div>
      </nav> <!-- -->
    </div>
  </div>

  <!-- 此处是内容 -->
  <div style="height:310px;">

    <div class="demo">
      <div style="float:left;margin-left:100px">
        <a class="btn btn-warning btn-lg btn-block" href="Aworkcompany.html" role="button">公司</a></button>
        <a class="btn btn-warning btn-lg btn-block" href="Aworkposition.html" role="button">职位</a></button>
      </div>
      <div>
        <ul class="select" style="height:310px;">
          <li class="select-list" style="height:90px;">
            <dl id="select1">
              <dt>公司地点：</dt>


            <input type="text" v-model="job_add"  name="job_add" class="form-control" placeholder="请输入城市" style="height: 30px">
              <br>
              <a @click="queryAdd()" class="btn-warning"><p style="color: #0b0b0b">查询</p></a>

            </dl>
          </li>
          <li class="select-list" style="height:90px;">
            <dl id="select2">
              <dt>行业领域：</dt>
              <input type="text" v-model="company_type"  name="company_type" class="form-control" placeholder="请输入行业类型" style="height: 30px">
              <br>
              <a @click="queryType()" class="btn-warning"><p style="color: #0b0b0b">查询</p></a>


            </dl>
          </li>
          <li class="select-list" style="height:100px;">
            <dl id="select3">
              <dt>公司规模：</dt>
              <select v-model="company_scale" class="form-control" name="company_scale">
                <option value="0" selected>---请选择---</option>
                <option value="50人以下" selected>50人以下</option>
                                <option value="50~100人">50~100人</option>
                                <option value="100~150人">100~150人</option>
                                <option value="150~500人">150~500人</option>
                                <option value="500~1000人">500~1000人</option>
                                <option value="1000人以上">1000人以上</option>
              </select>
<!--              <input type="text" v-model="company_scale"  name="company_scale" class="form-control" placeholder="请输入期望公司人数，例如：期望130人，则输入150" style="height: 30px">-->
              <br>
              <a @click="queryScale()" class="btn-warning"><p style="color: #0b0b0b">查询</p></a>


            </dl>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!-- OUR EVENTS -->
  <div style="height:700px">

    <div class="section bgi-cover-center">

      <div class="content-wrap">

        <div class="container">
          <div style="font-size:15px;" style="float:left;">
            <p style="font-size: large;color: #0b0b0b">
              工作>公司
            </p>


            <div class="row mt-4">

              <!-- Item 1 -->

              <div class="col-sm-12 col-md-12 col-lg-4 mb-5" v-for="(item,index) in companyList">
                <div class="rs-news-1">
                  <div class="media-box">
                    <img :src="'http://localhost:8080/'+item.company_img_url" alt="" class="img-fluid">
                  </div>
                  <div class="body-box">
                    <div class="title">{{item.company_name}}</div>
                    <div class="meta-date" style="color: #ac2925">
                      {{item.company_add}}
                    </div>
                    <div style="height: 100px">
                      <p type="text" style="color:#000000">
                        {{item.company_slogan}}
                      </p>
                    </div>
                    <div style="width:90px">
                      <p type="text" style="background-color: #D3D3D3;color:#000000">
                        {{item.company_scale}}
                      </p>
                    </div>
                    <div class="text-center">
                      <a class="btn btn-primary" @click="lookUp(item.company_id)"><p type="text" style="color:#000000;font-size: large">进入公司</p></a>
                    </div>
                  </div>
                </div>
              </div>



            </div>

          </div>
        </div>
      </div>
    </div>


    <div class="footer" data-background="images/bg.jpg">
      <div class="content-wrap">
        <div class="container">

          <div class="row">
            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <img src="images/logo.png" alt="logo bottom" class="logo-bottom">
                <div class="spacer-30"></div>
                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy.</p>
                <a href="#"><i class="fa fa-angle-right"></i> Read More</a>
              </div>
            </div>

            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <div class="footer-title">
                  Contact Info
                </div>
                <ul class="list-info">
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-map-marker"></span>
                    </div>
                    <div class="info-text">99 S.t Jomblo Park Pekanbaru 28292. Indonesia</div> </li>
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-phone"></span>
                    </div>
                    <div class="info-text">(0761) 654-123987</div>
                  </li>
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-envelope"></span>
                    </div>
                    <div class="info-text">info@yoursite.com</div>
                  </li>
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-clock-o"></span>
                    </div>
                    <div class="info-text">Mon - Sat 09:00 - 17:00</div>
                  </li>
                </ul>

              </div>
            </div>

            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <div class="footer-title">
                  Useful Links
                </div>

                <ul class="list">
                  <li><a href="index2.html" title="About us">关于我们</a></li>
                  <li><a href="help1.html" title="Contact Us">帮助</a></li>
                </ul>

              </div>
            </div>

            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <div class="footer-title">
                  Get in Touch
                </div>
                <p>Lit sed The Best in dolor sit amet consectetur adipisicing elit sedconsectetur adipisicing</p>
                <div class="sosmed-icon d-inline-flex">
                  <a href="#" class="fb"><i class="fa fa-facebook"></i></a>
                  <a href="#" class="tw"><i class="fa fa-twitter"></i></a>
                  <a href="#" class="ig"><i class="fa fa-instagram"></i></a>
                  <a href="#" class="in"><i class="fa fa-linkedin"></i></a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="fcopy">
        <div class="container">
          <div class="row">
            <div class="col-sm-12 col-md-12">
              <p class="ftex">Copyright 2019 &copy; <span class="color-primary">Kids HTML Template</span>. Designed by <span class="color-primary">Rometheme.</span></p>
            </div>
          </div>
        </div>
      </div>

    </div>

    <!-- JS VENDOR -->
    <script src="js/vendor/jquery.min.js"></script>
    <script src="js/vendor/bootstrap.min.js"></script>
    <script src="js/vendor/owl.carousel.js"></script>
    <script src="js/vendor/jquery.magnific-popup.min.js"></script>
    <script src="js/vendor/isotope.pkgd.min.js"></script>
    <script src="js/vendor/imagesloaded.pkgd.min.js"></script>

    <!-- SENDMAIL -->
    <script src="js/vendor/validator.min.js"></script>
    <script src="js/vendor/form-scripts.js"></script>

    <script src="js/script(qt).js"></script>
  </div>
</div>

</body>
</html>
<script>
  var x = window.sessionStorage.getItem("applicant_number");
  document.getElementById("demo").innerHTML = x;
</script>
<script>
  new Vue({
    el:"#app",
    data:{
      companyList:[],
      job_add:'',
      addList:[],
      company_type:'',
      company_scale:'',
      typeList:[],
      scaleList:[],
      company_id:0,
      postList:[],
    },
    methods:{
      queryAdd:function () {
        _this = this
        //查询求职者信息
        axios.get('/company/addlist', {
          params: {
            job_add: this.job_add
          }
        }).then(function (response) {
          _this.companyList = response.data;
          console.log(response.data);
        })
                .catch(function (error) {
                  console.log(error);
                });
      },

        queryType:function () {
          _this = this
          //查询求职者信息
          axios.get('/company/typelist', {
            params: {
              company_type: this.company_type
            }
          }).then(function (response) {
            _this.companyList = response.data;
            console.log(response.data);
          })
                  .catch(function (error) {
                    console.log(error);
                  });
      },

      queryScale:function () {
        _this = this
        //查询求职者信息
        axios.get('/company/scalelist', {
          params: {
            company_scale: this.company_scale
          }
        }).then(function (response) {
          _this.companyList = response.data;
          console.log(response.data);
        })
                .catch(function (error) {
                  console.log(error);
                });
      },

      lookUp:function(company_id) {
        window.localStorage.setItem("company_id",company_id);
        // alert(company_id)
        location.href="Companyposition.html"

      }
    },
    mounted() {
      _this = this

      axios.get('/company/list2', {
        params: {
          companyName: this.companyName
        }
      }).then(function (response) {
        console.log(response.data);
        _this.companyList = response.data;
      }).catch(function (error) {
        console.log(error);
      });
    }
  })
</script>
